import zmail

def send_mail(from_mail:str,passwd:str,to_mail:str,subject:str,txt:str) -> None:
    # server = zmail.server('2798156978@qq.com','axjlnoyepyaqdhdg')
    server = zmail.server(from_mail,passwd)
    # 发邮件
    # server.send_mail('17209295610@163.com',{'subject':'这个测试邮件','content_text':'这个是内容'})
    server.send_mail(to_mail,{'subject':subject,'content_text':txt})